home *** CD-ROM | disk | FTP | other *** search
- on menujump
- global MouseMGR
- set TestCoords to [rect(298, 7, 411, 127), rect(28, 103, 199, 251), rect(381, 301, 470, 379), rect(476, 62, 638, 164), rect(87, 318, 219, 398)]
- set SectionList to ["Basic", "Stretch", "Baggy", "Flair", "Utility"]
- puppetSprite(10, 0)
- repeat with n = 1 to count(TestCoords)
- if inside(point(the mouseH, the mouseV), getAt(TestCoords, n)) then
- cursor([member "Wait", member "Waitmask"])
- puppetSprite(10, 1)
- set the rect of sprite 10 to getAt(TestCoords, n)
- updateStage()
- pauseit()
- puppetSprite(10, 0)
- updateStage()
- go(getAt(SectionList, n))
- set MouseMGR to EMPTY
- cursor(0)
- exit
- end if
- end repeat
- end
-
- on pauseit
- set startTimer to the ticks + 30
- repeat while the ticks <= startTimer
- end repeat
- end
-
- on CursorRoll WhoAmi, Myrects
- if the frontWindow = WhoAmi then
- repeat with C = 1 to count(Myrects)
- if inside(point(the mouseH, the mouseV), getAt(Myrects, C)) then
- cursor([member "hand", member "handmask"])
- next repeat
- end if
- cursor(0)
- end repeat
- end if
- end
-
- on mouseDown
- if the frameLabel = "Main" then
- set MyTestrects to [rect(298, 7, 411, 127), rect(28, 103, 199, 251), rect(381, 301, 470, 379), rect(476, 62, 638, 164), rect(87, 318, 219, 398)]
- set Myclickedrects to [rect(380, 99, 407, 127), rect(167, 219, 194, 247), rect(418, 348, 445, 376), rect(582, 134, 609, 162), rect(87, 320, 114, 348)]
- set MyClickGRFX to ["styles_rivet_clicked", "styles_rivet_clicked", "styles_rivet_clicked", "styles_rivet_clicked", "styles_rivet_clicked"]
- repeat with d = 1 to count(MyTestrects)
- if inside(point(the mouseH, the mouseV), getAt(MyTestrects, d)) then
- puppetSprite(50, 1)
- set the memberNum of sprite 50 to member getAt(MyClickGRFX, d)
- set the rect of sprite 50 to getAt(Myclickedrects, d)
- updateStage()
- end if
- end repeat
- end if
- end
-